package dao;

import entity.FilmInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FilmInfoDao {
    public List<FilmInfo> getFilmInfos();

    public List<FilmInfo> getFilmInfosByName(String filmname);

    public List<FilmInfo> getFilmInfosByCondition(@Param("filmname") String filmname,@Param("ticketprice") Integer money);

    public List<FilmInfo> getFilmInfosByCondition2(Map<String,Object> map);

    public List<FilmInfo> getFilmInfosByCondition3(FilmInfo info);

    public List<FilmInfo> getFilmInfosByCondition4(@Param("info") FilmInfo info);

    public List<FilmInfo> getFilmInfosByCondition5(@Param("choice") String choice);
    public List<FilmInfo> getFilmInfosByCondition6(Integer[] typeid);

    public List<FilmInfo> getFilmInfosByCondition7(List<Integer> typeid);

    public List<FilmInfo> getFilmInfosAndType();

    //纯分页
    public int getFilmCount();
    public List<FilmInfo> getFilmInfosAndTypeByPage(@Param("pageIndex") Integer pageIndex,@Param("pageSize")Integer pageSize);

    //带条件分页
    public int getFilmCount2(@Param("info")FilmInfo info);
    public List<FilmInfo> getFilmInfosAndTypeByPage2(@Param("pageIndex") Integer pageIndex,@Param("pageSize")Integer pageSize,@Param("info")FilmInfo info);


    //删除
    public int delFilminfo(@Param("filmid")Integer filmid);

    //删除
    public int addFilminfo(@Param("info")FilmInfo info);

    //删除
    public int updateFilminfo(@Param("info")FilmInfo info);

}













